#ifndef UICALLBACK_H__
#define UICALLBACK_H__

#include "UIMsg.h"
class CUICallBack
{
public:
	static CUICallBack* GetInstance()
	{
		static CUICallBack sObj;
		return &sObj;
	}
	~CUICallBack();

	bool RegisterMsg(HWND hWnd,UIMsgType nType);
	bool PostMessage(UIMsgType nType,WPARAM wParam,LPARAM lParam);
protected:
	CUICallBack();
private:

	map<UIMsgType,HWND> m_mapMsgWindows;
//	map<HWND,set<UIMsgType>> m_vWindowMsgs;

};
#endif